const { postRequest, getRequest, deleteRequest, putRequest } = require('./request')

// 团长申请
const shopApply = (params) => postRequest('/shop/apply', params)
// 删除驳回门店
const shopDelete = (params) => deleteRequest('/shop/deleteShop', params)
// 驳回分页查询
const queryRejectLeadShopPage = (params) => postRequest('/shop/queryRejectLeadShopPage', params)
// 分页查询账单信息
const queryShopAccountPage = (params) => postRequest('/shop/queryShopAccountPage', params)
// 查询提货点详情
const queryShopInfo = (params) => getRequest('/shop/queryShopInfo', params)
// 更新营业时间
const updateBusinessTime = (params) => postRequest('/shop/updateBusinessTime', params)
// 门店会员数统计
const getLeadApproveCount = (params) => getRequest('/shop/getLeadApproveCount', params)
// 快捷报单统计
const getShopProdStaticCount = (params) => getRequest('/shop/getShopProdStaticCount', params)
// 图文提取
const getShopProdWeekCommissCount = (params) => getRequest('/shop/getShopProdWeekCommissCount', params)
const shopProductSearch = (params) => postRequest('/shop/shopProductSearch', params)
const queryShopProdWeekPage = (params) => postRequest('/shop/queryShopProdWeekPage', params)
// 生成门店商品海报
const getShopProductPoster = (params) => getRequest('/shop/getShopProductPoster', params)
// 销量比拼,type类型1天2月3累计
const getShopStaticSaleCount = (params) => getRequest('/shop/getShopStaticSaleCount', params)
// 门店会员订单分页查询
const queryLeadShopOrderPage = (params) => postRequest('/shop/queryLeadShopOrderPage', params)
// 审核通过和审核拒绝统计
const queryShopLeadAuditCount = (params) => getRequest('/shop/queryShopLeadAuditCount', params)

module.exports = {
  shopApply,
  shopDelete,
  queryRejectLeadShopPage,
  queryShopAccountPage,
  queryShopInfo,
  updateBusinessTime,
  getLeadApproveCount,
  getShopProdStaticCount,
  getShopProdWeekCommissCount,
  shopProductSearch,
  queryShopProdWeekPage,
  getShopProductPoster,
  getShopStaticSaleCount,
  queryLeadShopOrderPage,
  queryShopLeadAuditCount
}